package com.donica.wamstest.entity;

import java.sql.Timestamp;

import com.fasterxml.jackson.annotation.JsonFormat;

public class FileDTO {
	private String id;
	private int index;
	private String package_index;
	private String name;
	private String uri;
	private long size;
	private String ext;
	private String creator;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+0")
	private Timestamp create_time;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+0")
	private Timestamp update_time;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public int getIndex() {
		return index;
	}
	public void setIndex(int index) {
		this.index = index;
	}
	public String getPackage_index() {
		return package_index;
	}
	public void setPackage_index(String package_index) {
		this.package_index = package_index;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUri() {
		return uri;
	}
	public void setUri(String uri) {
		this.uri = uri;
	}
	public long getSize() {
		return size;
	}
	public void setSize(long size) {
		this.size = size;
	}
	public String getExt() {
		return ext;
	}
	public void setExt(String ext) {
		this.ext = ext;
	}
	public String getCreator() {
		return creator;
	}
	public void setCreator(String creator) {
		this.creator = creator;
	}
	public Timestamp getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Timestamp create_time) {
		this.create_time = create_time;
	}
	public Timestamp getUpdate_time() {
		return update_time;
	}
	public void setUpdate_time(Timestamp update_time) {
		this.update_time = update_time;
	}
	
	public void valueOf(FileVO vo) {
		this.name = vo.getName();
		this.uri = vo.getUri();
		this.size = vo.getSize();
		this.ext = vo.getExt();
		this.creator = vo.getCreator();
	}
}
